package com.colbby.datahouse.front.api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.colbby.datahouse.entity.Member;
import com.colbby.datahouse.front.service.MemberService;

@Controller
@RequestMapping("/member/")
public class MemberController {

	@Autowired
	private MemberService memberService = null;
	
	@ResponseBody
	@RequestMapping(value="find", method=RequestMethod.GET)
	public Member findPage(String nick, String shopNick) {
		return memberService.find(nick, shopNick);
	}
}